# == Schema Information
#
# Table name: specs
#
#  id         :integer          not null, primary key
#  title      :string
#  status     :integer          default(0)
#  created_at :datetime         not null
#  updated_at :datetime         not null
#

class Spec < ApplicationRecord

  validates :title, presence: { message: "标题不能为空" }

  has_many :products
end
